<!DOCTYPE html>
<html>
<head>
    <title>查看--中软高科-2015</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="../Js/ckeditor/ckeditor.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    <script type="text/javascript">
    $(function () {       
		$('#backid').click(function(){
				window.location.href="index.html";
		 });

        let hosrId = window.location.href.split("?")[1].split("=")[1];

        //console.log(doctorId);
        //发送ajax请求
        $.ajax({
            url: "selectBeHospitalStateById",
            data: {'hosrId':hosrId,},
            type: 'GET',
            dataType: 'json',
            success:function (data){
                if (data.response.flag){
                    let rig = data.data.totalMsg;
                    $("#hosrSelfprice").text(ziFei(rig.hosrSelfprice));
                    $("#hosrSex").text(sexfo(rig.hosrSex));
                    $("#hosrLookdoctor").text(zhenduan(rig.hosrLookdoctor));
                    $("#hosrName").text(rig.hosrName);
                    $("#hosrMedical").text(rig.hosrMedical);
                    $("#hosrPhone").text(rig.hosrPhone);
                    $("#hosrAge").text(rig.hosrAge);
                    $("#hosrRemark").text(rig.hosrRemark);
                    $("#doctorName").text(rig.doctorName);
                    $("#keShi").text(rig.keShi);
                    let hosrIdcar = $("#hosrIdcar").text(rig.hosrIdcar);
                    let hosrId = $("#hosrId").text(rig.hosrId);
                    let behNursepeople = $("#behNursepeople").text(rig.behNursepeople);
                    let behPatbed = $("#behPatbed").text(rig.behPatbed);
                    let behAntecedent = $("#behAntecedent").text(rig.behAntecedent);
                    let behIllness = $("#behIllness").text(rig.behIllness);
                    let hosrWork = $("#hosrWork").text(rig.hosrWork);

                    //获取身份证号
                    //changeIdCar(doctor.dIdcar)
                }
            }
        })
    });

    function formDate(toDate){
        var date= new Date(toDate);
        var year=date.getFullYear(); //获取当前年份
        var mon=date.getMonth()+1; //获取当前月份
        var da=date.getDate(); //获取当前日
        var day=date.getDay(); //获取当前星期几
        var h=date.getHours(); //获取小时
        var m=date.getMinutes(); //获取分钟
        var s=date.getSeconds(); //获取秒
        var d=document.getElementById('Date');
        return year+'-'+mon+'-'+da;
    }
    function sexfo(sex){
        if (sex==1){
            return "男";
        }else {
            return "女";
        }
    }
    function formDate(toDate){
        var date= new Date(toDate);
        var year=date.getFullYear(); //获取当前年份
        var mon=date.getMonth()+1; //获取当前月份
        var da=date.getDate(); //获取当前日
        var day=date.getDay(); //获取当前星期几
        var h=date.getHours(); //获取小时
        var m=date.getMinutes(); //获取分钟
        var s=date.getSeconds(); //获取秒
        var d=document.getElementById('Date');
        return year+'-'+mon+'-'+da;
    }

    function ziFei(num){
        if (num==1){
            return "免费";
        }
        if (num==0){
            return "自费";
        }
    }

    function zhenduan(num){
        if (num==1){
            return "初诊";
        }
        if (num==0){
            return "复诊";
        }
    }
    </script>
</head>
<body>
<form action="../../index.html" method="post" class="definewidth m20">
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">姓名</td>
        <td id="hosrName">陆小凤</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">证件类型</td>
        <td>身份证</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">证件号</td>
        <td id="hosrIdcar">102434586345673</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">社保号</td>
        <td id="hosrMedical">435345435</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">联系电话</td>
        <td id="hosrPhone">12378656789</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">是否自费</td>
        <td id="hosrSelfprice">否</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">性别</td>
        <td id="hosrSex">男</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">年龄</td>
        <td id="hosrAge">33</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">职业</td>
        <td id="hosrWork">狗仔队</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">初复诊</td>
        <td id="hosrLookdoctor">初诊</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">所挂科室</td>
        <td id="keShi">骨科</td>
    </tr>
    <tr>
        <td width="10%" class="tableleft">指定医生</td>
        <td id="doctorName">欧阳雨露</td>
    </tr>
	 <tr>
        <td width="10%" class="tableleft">押金余额</td>
        <td id="behAntecedent">3000元</td>
    </tr>
	
	<tr>
        <td width="10%" class="tableleft">备注</td>
        <td id="behIllness">此人疑拟有精神病</td>
	</tr>
    <tr>
        <td colspan="2">
			<center>
				<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
			</center>
		</td>
    </tr>
</table>
</form>
</body>
</html>